<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>

<h1 class="page-header"><#if me.type='student'>困知勉行</#if>
<#if me.type='teacher'>知己知彼</#if></h1>

<ul class="nav nav-tabs">
<#if me.type='teacher'>
    <li role="presentation" <#if module?? && module=='1'>class="active"</#if>><a href="?module=1">课堂氛围</a></li>
    <li role="presentation" <#if module?? && module=='2'>class="active"</#if>><a href="?module=2">授课内容</a></li>
    <li role="presentation" <#if module?? && module=='3'>class="active"</#if>><a href="?module=3">教师风格</a></li>
</#if>
<#if me.type='student'>
    <li role="presentation" <#if module?? && module=='1'>class="active"</#if>><a href="?module=1">课堂表现</a></li>
    <li role="presentation" <#if module?? && module=='2'>class="active"</#if>><a href="?module=2">笔试情况</a></li>
    <li role="presentation" <#if module?? && module=='3'>class="active"</#if>><a href="?module=3">学生特点</a></li>
</#if>
</ul>


    <table class="table table-striped table-bordered">
    <#list list as i>
        <tr>
            <th>测评指标：${i.content}</th>
            <th>${i.q1}(<span class="text-danger">${i.rate1*100}%</span>)</th>
            <th>${i.q2}(<span class="text-danger">${i.rate2*100}%</span>)</th>
            <th>${i.q3}(<span class="text-danger">${i.rate3*100}%</span>)</th>
        </tr>
        <tr>
            <td colspan="4" class="text-muted">
                <#if i.rate3 < 0.3 && i.rate1 &gt; 0.5>满意信息：${i.a1}</#if>
                <#if i.rate3 < 0.3 && i.rate1 <= 0.5>提醒信息：${i.a2}</#if>
                <#if i.rate3 &gt;= 0.3>建议信息：${i.a3}</#if>
            </td>
        </tr>
    </#list>
    </table>


<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/laypage/laypage.js"></script>
<script type="text/javascript" src="/static/js/form-ajax.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.validate.min.js"></script>
<script type="text/javascript">
    function toggleSelectAll(self,$sel){
        if(self.checked)
            $sel.each(function(){
                if(!this.checked) $(this).click();
            });
        else{
            $sel.each(function(){
                if(this.checked) $(this).click();
            });
        }
    }
    function del(id){
        if(confirm('确认删除此记录？'))
            $.post('/user/del',{
                id:id
            },function(data){
                if(data){
                    alert('操作成功');location.reload();
                }
                else{
                    alert('操作失败')
                }
            },'json');
    }
</script>
</body>
</html>